import React, { Component } from 'react'
import axios from 'axios'

interface IProps { }
interface IState {
    sentence: string;
}
export default class SprayList extends Component<IProps, IState> {
    constructor(props: IProps) {
        super(props);
        this.state = {
            sentence: ''
        }
    }
    async componentDidMount() {
        const res = await axios.get('https://v1.jinrishici.com/all.json');
        this.setState({ sentence: res.data.content })
    }
    render() {
        return (
            <div style={{ padding: '3vh 3vw' }}>
                <h1>功能暂未开放，敬请期待</h1>
                <h3>{this.state.sentence}</h3>
            </div>
        )
    }
}
